#ifndef CONVERSATIONWINDOW_H
#define CONVERSATIONWINDOW_H

#include <QtGui/QDialog>
#include <QCloseEvent>
#include <QTimer>
#include "genericcontact.h"
#include "conversationconector.h"
#include "messagepacket.h"
#include "SettingManager.h"

namespace Ui {
    class ConversationWindow;
}

class ConversationWindow : public QDialog {
    Q_OBJECT
    Q_DISABLE_COPY(ConversationWindow)
public:
    explicit ConversationWindow(GenericContact *realparent, ConversationConector *connector, QWidget *parent = 0);
    virtual ~ConversationWindow();
    void updated(ConversationConector *connector);
protected:
    virtual void changeEvent(QEvent *e);
private:
    ConversationConector *connector;
    QTimer *timer;
    GenericContact *realparent;
    Ui::ConversationWindow *m_ui;
    void closeEvent(QCloseEvent *event);
private slots:
    void on_sendButton_clicked();
    void dataReception();
};

#endif // CONVERSATIONWINDOW_H
